package com.lzh.shijicloudstack.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzh.shijicloudstack.model.entity.CookbookCategory;
import com.lzh.shijicloudstack.model.entity.CookbookProcess;

import javax.validation.constraints.NotNull;
import java.util.List;


/**
 * 菜谱分类数据库访问层
 *
 * @author luzhiheng
 * @since 2025-01-17
 */
public interface CookbookCategoryMapper extends BaseMapper<CookbookCategory> {

    /**
     * 根据父级id删除菜谱分类
     *
     * @param parentId 父级id
     */
    void deleteByParentId(Long parentId);

    /**
     * 根据id列表查询菜谱分类
     *
     * @param cookbookCategoryIdList 菜谱分类id列表
     * @return 菜谱分类列表
     */
    List<CookbookCategory> selectByIdList(List<Long> cookbookCategoryIdList);
}

